package com.youlu.campus.admin.course.dto;

import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;

/**
 * @author : [dengbo]
 * @className : CourseOrderRefundOpDTO
 * @description : [订单退款操作]
 * @createTime : [2022/5/21 12:01]
 */
@Data
public class CourseOrderRefundOpDTO {
    @NotBlank(message = "订单Id不能为空")
    private String orderId;
    /**
     * 0 驳回 1通过
     */
    @Range(min = 0, max = 1, message = "退款操作类型错误")
    private Integer type;
    private String reason;
}
